home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / doc / bintohex.doc < prev    next >
Text File  |  1994-02-13  |  2KB  |  40 lines

  1.  
  2. bintohex/bintohex                                             bintohex/bintohex
  3.  
  4.  
  5.         bintohex <inFile> [outFile] -s[1,2,3] [-i]
  6.  
  7.  
  8.         /Bintohex/ converts a binary file into Motorola S-Record or Intel
  9.         Hex format files.  Hex format files are used by many brands of
  10.         EPROM or Flash EPROM programming devices, and are accepted by
  11.         by most vendors of mask ROM.
  12.  
  13.             inFile      Binary input file.
  14.  
  15.             outFile     Output file.  If no output file is specified,
  16.                         /bintohex/ writes to the console.
  17.  
  18.             -s[1,2,3]   Specify Motorola S-Record format.
  19.  
  20.                                 SXnn[addr]DD..DDcc
  21.  
  22.                         SX      = File type, S1, S2 or S3.
  23.                         nn      = Number of bytes, not including nn
  24.                         [addr]  = Address.  S1=4 bytes, 64K limit
  25.                                             S2=6 bytes, 16MB limit
  26.                                             S3=8 bytes, 4GB limit
  27.                         DD..DD  = Data
  28.                         cc      = Checksum, 0xff-Sum of bytes on line
  29.  
  30.  
  31.             -i          Specify Intel Hex format.  64K bytes maximum.
  32.  
  33.                                 :xxaaaarrDD..DDcc
  34.  
  35.                         xx   = Number of bytes on line
  36.                         aaaa = Address
  37.                         rr   = Record type, 00=normal, 01=end
  38.                         DD   = Data (xx bytes worth)
  39.                         cc   = Checksum, 0-Sum of bytes on line
  40.